package Animal;

public class Student {
    private String name;

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void feed(Animal ani){
        System.out.println(this.name+"在喂"+ani.getName());
        ani.shout();

    }

}
